Repository navigation
fix(menu): keep menus under the bar, capped at three quarters of the window, with a more-below hint (0.57.0) - #25
Merged
Conversation
A menu-bar menu taller than the room under the bar was placed by openAt, which flips it above its point and clamps it to 4 px from the window top, so it covered the bar. Bar menus now open with openUnder: top fixed under the button, no flip, and an inline max-height of at most 75% of the window set before measuring. Submenus take the same cap and never rise above the bar's floor.
A long menu gave no sign that rows remain below. The card now holds a scrolling list and a pill: the bottom rows fade into the menu's own glass and a small pill with a down chevron shows while rows remain below, gone at the last row (160 ms) and back when scrolled up (490 ms). A menu opens with the hint already in place; reduced motion switches it with no fade.
openAt clamped to 4 px from the window top with only the stylesheet's 100vh - 8px cap, so a long right-click menu could cover the menu bar. It now takes the menu bar's bottom edge as its floor (the window top when the bar is hidden), the same 75% cap set before measuring, and the more-below hint. It still opens at the pointer, flipped above or left when there is no room, and its submenus follow.
Version sites, as 0.56.0's release: frontend/package.json, both fields of frontend/package-lock.json, frontend/src/version.ts, backend/app/__init__.py, src-tauri/Cargo.toml, its Cargo.lock entry, src-tauri/tauri.conf.json, the README badge, SECURITY.md (0.57.x), the three HASHOUT_LOG headers. CHANGELOG v0.57.0 dated 2026-11-30. A minor number: the more-below hint is new. The demo bundles in demo/, demos/develop and demos/share are rebuilt with their own scripts, so the web demos carry the menu fix; their index.html also picks up the amoled theme boot that frontend/index.html gained since the last demo build. Ran: tsc --noEmit, npm run build, the three demo builds, and the menu probe on the rebuilt demo in headless Chromium at 1280x800, 1000x480 and 800x320 under 4x CPU. The window tests, the right-click menus in the desktop window and the desktop builds were not run here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(menu): keep menus under the bar, capped at three quarters of the window, with a more-below hint (0.57.0)
Summary
PopupMenu.openAt, whose vertical clamp let a menu taller than the room below rise totop: 4, over the bar. Fix: a newopenUnderkeeps the menu at the bar's bottom edge plus 4 px and caps it atmin(75% of the window, room to the bottom); the rows move into an inner.cv-menu-listthat scrolls. Submenus take the root menu's floor and the same cap..cv-menu-more, the app's own glass and border tokens). Both go away at the last row and come back on scrolling up. The hint is set while the panel is stillvisibility: hidden(showMore(true)), so it is in place on the first painted frame.PopupMenu.openAt: workspace, library, sources, keywords, publish, develop presets, snapshots, history, panel headers) keep their pointer-corner placement but now take the bar as their floor, the same cap and the same hint.Commits
Version
v0.57.0 (release commit is last), a minor bump from 0.56.1 on main because the hint is new. Bumped:
frontend/package.json, both own-version fields offrontend/package-lock.json,frontend/src/version.ts,backend/app/__init__.py,src-tauri/Cargo.toml, the app's entry insrc-tauri/Cargo.lock,src-tauri/tauri.conf.json(formcompiler's version file), the README badge,SECURITY.md(0.57.x) and the three HASHOUT_LOG headers. CHANGELOG has a v0.57.0 section. The committed demo bundles indemo/,demos/developanddemos/shareare rebuilt with their own vite configs; theirindex.htmlalso picks up the amoled theme boot thatfrontend/index.htmlgained since the last demo build.Checks
npm run buildinfrontend(runstsc --noEmitthenvite build): clean, exit 0.vite build --config demo/vite.config.mjs, and the same fordemos/developanddemos/share): exit 0. The demos' owntsc -preports 7 unused-symbol errors (TS6133/TS6138) in files this branch does not touch (face-regions.ts,folder-sync.ts,session-panel.ts,ai.ts,extensions.ts,merge-dialog.ts,brand.ts); they come from main.origin/main.Not run: the window tests (
frontend/tests/window, they need the Python engine), the backend tests, the right-click menus measured in a browser (the probe opened only bar menus; the right-click change was checked by reading the code), the guide's 1871x1080 and 1280x720 sizes, submenus measured on their own, the hint fade timings, End and Home, keyboard navigation, the demos opened fromfile://, and the desktop builds on macOS, Windows and Linux.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.